var ss_prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.signatureswitch.");
var ss_main = {
signatureSwitch : function()
{
var currentEditor = GetCurrentEditor();
var currentEditorDom = currentEditor.rootElement;
var currentEditorDomChilds = currentEditorDom.childNodes;
var initialRange = currentEditor.selection.getRangeAt(0).cloneRange();
var fstream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
var sstream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
var sconverter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter);